package com.xdj.chashuiwu.blog.service.impl;

import com.xdj.chashuiwu.blog.dao.BTypeDao;
import com.xdj.chashuiwu.blog.entity.BTypeEntity;
import com.xdj.chashuiwu.blog.service.BTypeService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xdj.common.utils.PageUtils;
import com.xdj.common.utils.Query;


@Service("bTypeService")
public class BTypeServiceImpl extends ServiceImpl<BTypeDao, BTypeEntity> implements BTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BTypeEntity> page = this.page(
                new Query<BTypeEntity>().getPage(params),
                new QueryWrapper<BTypeEntity>()
        );

        return new PageUtils(page);
    }

}